package channel

import (
	"gitee.com/liuxuezhan/ar-platform/assets-rpc/internal/dao/schema"
)

const TableNameTenantChannelQrBank = "tenant_channel_qr_bank"

// TenantChannelQrBank 商户通道【qr_bank】
type TenantChannelQrBank struct {
	schema.Model
	QrCode       string  `gorm:"type:varchar(1024);not null;comment:二维码"`
	BankNickname string  `gorm:"type:varchar(32);not null;comment:银行昵称"`
	BankName     string  `gorm:"type:varchar(32);not null;comment:银行名称"`
	MinAmount    float64 `gorm:"type:decimal(10,4);not null;comment:最小收款金额"`
	MaxAmount    float64 `gorm:"type:decimal(10,4);not null;comment:最大收款金额"`
	DailyTimes   int32   `gorm:"type:int;not null;comment:日总充值次数"`
	DailyAmount  float64 `gorm:"type:decimal(10,4);not null;comment:日总充值金额"`
	RemainTimes  int32   `gorm:"type:int;not null;comment:日总充值剩余次数"`
	RemainAmount float64 `gorm:"type:decimal(10,4);not null;comment:日总充值剩余金额"`
	VisionLevel  string  `gorm:"type:varchar(32);not null;comment:可见等级"`
	IsDisplay    int32   `gorm:"type:tinyint;not null;comment:1:显示"`
	Sort         int32   `gorm:"type:tinyint(10);not null;comment:排序"`
	Remark       string  `gorm:"type:varchar(255);not null;comment:备注"`
}

func (*TenantChannelQrBank) TableName() string {
	return TableNameTenantChannelQrBank
}
